import Vue from 'vue'
import Router from 'vue-router'

/**
 * 路由懒加载
 */
const Index = () => import("@/view/index/Index")
const Test = () => import("@/view/test/Test")
const Login = () => import("@/view/login/Login")


Vue.use(Router)



export default new Router({
    routes: [
        {
            path: '/',
            name: 'Index',
            component: Index
        },{
            path: '/test',
            name: 'Test',
            component: Test
        },{
            path: '/login',
            name: 'Login',
            component: Login
        }

    ]
})
